'''
Created on 2011-3-12

@author: Ren
'''
#coding=utf-8
from aboutfamily.eventHandle.models import Event,InvolveParty
from django.contrib import admin

class EventAdmin(admin.ModelAdmin):
    fieldsets=[
               (None, {'fields':['initiator',
                                 'topic',
                                 'start_date',
                                 'end_date',
                                 'location']}),
               ('Detail',{'fields':['description']})
               ]
    list_display = ['topic']

class InvolvePartyAdmin(admin.ModelAdmin):
    fields=['event','involve'] 
    
admin.site.register(Event, EventAdmin) 
admin.site.register(InvolveParty,InvolvePartyAdmin)